@import './variables.less';

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background-color: @page_bg_color;
}

label {
  font-weight: 700;
}

html {
  box-sizing: border-box;
}

#app {
  min-width: 1460px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.row {
  display: flex;
}

.size-box__column {
  .set-size(0, 20px);
}

.size-box__row {
  .set-size(20px, 0);
}

.news-list {
  width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  .news-list__item {
    @vertical_center();
    width: 100%;
    justify-content: space-between;
    margin-bottom: 17px;
    cursor: pointer;
    .news-list__item--title {
      @text_overflow_ellipsis();
      font-size: 16px;
      flex: 1;
      margin-right: 20px;
    }
    .news-list__item--desc {
      width: 66px;
      font-size: 14px;
      color: @font_gray;
    }
    &:hover {
      text-decoration: underline;
    }
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.first-news {
  width: 100%;
  min-height: 533px;
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  .title {
    color: #9d0603;
    font-size: 30px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    min-height: 30px;
    cursor: pointer;
  }
  .main {
    flex: 1;
    margin-top: 40px;
    display: flex;
    .banner {
      height: 100%;
      flex: 1;
      overflow: hidden;
      .swiper-pagination {
        bottom: 0;
        .swiper-footer {
          @align_center();
          width: 670px;
          height: 68px;
          background-color: rgba(0, 0, 0, 0.4);
          padding: 0 20px;
          .swiper-title {
            @text_overflow_ellipsis();
            flex: 1;
            margin: 0 20px;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
          }
          .arrow {
            cursor: pointer;
            width: 10px;
          }
          .pages {
            color: #fff;
            margin-left: 20px;
            font-size: 18px;
          }
        }
      }
    }
    .list {
      margin-left: 40px;
      flex: 1;
      .list-title {
        padding-bottom: 20px;
        margin-bottom: 20px;
        color: @theme_color;
        font-size: 30px;
        font-weight: bold;
        border-bottom: 3px solid @theme_color;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        &::after {
          content: '';
          position: absolute;
          bottom: -3px;
          left: 0;
          background-color: #9d0603;
          width: 120px;
          height: 3px;
        }
      }
    }
  }
}

.sub-news {
  flex: 1;
  height: 413px;
  background-color: #fff;
  .title {
    padding: 25px 40px;
    color: @theme_color;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 40px;
      width: 120px;
      height: 3px;
      background-color: @theme_color;
    }
  }
  .list {
    padding: 0 40px 40px 40px;
    display: flex;
  }
}

.third-news {
  flex: 1;
  min-height: 613px;
  background-color: #fff;
  .title {
    padding: 25px 40px;
    color: @theme_color;
    font-size: 30px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &::after {
      content: '';
      position: absolute;
      top: 0;
      left: 40px;
      width: 120px;
      height: 3px;
      background-color: @theme_color;
    }
  }
  .content {
    padding: 0 40px 20px 40px;
    .img {
      width: 100%;
      height: 250px;
      background-color: @font_gray;
    }
    .list {
      display: flex;
    }
  }
  
}

.last-news {
  width: 100%;
  height: 530px;
  background-color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  .tabs {
    width: 100%;
    display: flex;
    .tab {
      @align_center();
      flex: 1;
      margin-right: 10px;
      height: 60px;
      border: 1px solid @theme_color;
      color: @theme_color;
      font-size: 22px;
      cursor: pointer;
      // &:hover {
      //   background-color: @theme_color;
      //   color: #fff;
      // }
      &.active {
        background-color: @theme_color;
        color: #fff;
      }
      &:last-child {
        margin-right: 0;
      }
    }
  }
  .content {
    flex: 1;
    margin-top: 40px;
    display: flex;
    width: calc(100% - 600px);
    position: absolute;
    .img {
      width: 600px;
      height: 358px;
      background-color: @font_gray;
    }
    .desc {
      flex: 1;
      height: 100%;
      margin-left: 40px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .title {
        color: @theme_color;
        font-size: 32px;
      }
      .sub-title {
        color: #434343;
        font-size: 20px;
        line-height: 32px;
        text-align: justify;
        text-indent: 40px;
      }
      .tag {
        @align_center();
        flex-direction: column;
        width: 355px;
        height: 158px;
        background-color: #f5f5f5;
        margin-right: 20px;
        &:last-child {
          margin-right: 0;
        }
        .num {
          color: @theme_color;
          font-size: 66px;
          font-weight: 400;
        }
        .label {
          margin-top: 20px;
          color: #434343;
           font-size: 20px;
        }
      }
    }
  }
}

.action {
  @vertical_center();
  cursor: pointer;
  .action-icon {
    width: 15px;
  }
  .action-label {
    margin-left: 5px;
    font-size: 14px;
    color: @font_gray;
  }
}